package com.amumu.netctoss.dao;

import java.util.List;
import java.util.Map;

import com.amumu.netctoss.entity.Admin;

public interface AdminDao {
	
	Admin findByCodeAndPwd(String code, String pwd) throws Exception;

	List<Admin> findAll(int page, int size) throws Exception;

	List<Admin> search(int page, int size, String module, String roleName) throws Exception;

	Admin findById(int id) throws Exception;

	void save(Admin admin) throws Exception;

	void delete(int id) throws Exception;

	void update(Admin admin) throws Exception;

	void updateUserInfo(Admin admin) throws Exception;

	void modifyPwd(Admin admin) throws Exception;

	void resetPwd(Integer[] id) throws Exception;

	Map<String, String> getModuleOptions();

	int getPageCount(int size) throws Exception;

	int getPageCount(int size, String module, String roleName) throws Exception;
	
	
}
